<template>
  <div>
    <district-index v-if="this.type == 'district'"></district-index>
    <school-index v-if="this.type == 'school'"></school-index>
    <admin-index v-if="this.type == 'admin'"></admin-index>
  </div>
</template>

<script>

import {mapGetters} from "vuex"
import DistrictIndex from "@/views/patrol/home/district"
import SchoolIndex from "@/views/patrol/home/school"
import AdminIndex from "@/views/patrol/home/admin"

export default {
  name: 'Index',
  data() {
    return {
    }
  },
  computed: {
    ...mapGetters(["type"])
  },
  components: {
    DistrictIndex,
    SchoolIndex,
    AdminIndex
  }
}
</script>

